package com.wangijun.yuan.admin.system.model.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wangijun.yuan.admin.system.model.em.UserGender;
import com.wangijun.yuan.admin.system.model.em.UserStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
@Schema(description = "用户编辑参数")
public class UserUpdateParam {

    /**
     * 主键
     */
    @NotNull(message = "主键不可为空")
    @Schema(description = "主键")
    private Long id;
    /**
     * 状态
     */
    @Schema(description = "状态")
    private UserStatus status;


    /**
     * 用户名称
     */
    @Schema(description = "用户名称")
    private String name;

    @Size(min = 1, message = "至少选择一个角色")
    @Schema(description = "角色ID信息")
    private List<Long> roleIds;
}
